<?php

class JS_IncrementNode extends JS_Node {
	
	public function __construct($val) {
		parent::__construct($val);
	}
	
	public function interpret() {
		return $this->children[0]->interpret() + 1;
	}
	
	public function __toString() {
		return $this->children[0] . '++';
	}
	
}

?>